// store/index.js
import { createStore } from 'vuex';

export default createStore({
    state() {
        return {
            mapData: null, // 存储地图数据
        };
    },
    mutations: {
        updateMapData(state, data) {
            state.mapData = data;
        },
    },
});
